﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:odc="clr-namespace:Odyssey.Controls" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ControlTemplate x:Key="InternalRibbonButton" TargetType="{x:Type odc:RibbonButton}">
        <odc:RibbonChrome RenderFlat="False" RenderPressed="{TemplateBinding IsPressed}"
                RenderMouseOver="{TemplateBinding IsMouseOver}" CornerRadius="{TemplateBinding CornerRadius}"
                Content="{TemplateBinding Content}" />
    </ControlTemplate>

    <ControlTemplate x:Key="InternalToggleButton" TargetType="{x:Type ToggleButton}">
        <odc:RibbonChrome x:Name="chrome" RenderFlat="True" RenderPressed="{TemplateBinding IsChecked}"
                RenderMouseOver="{TemplateBinding IsMouseOver}" CornerRadius="0" Content="{TemplateBinding Content}" />
        <ControlTemplate.Triggers>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="RenderPressed" Value="True" TargetName="chrome" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
</ResourceDictionary>